import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: RouteRecordRaw = {
  path: 'permission',
  name: 'permission',
  component: RouterView,
  meta: { title: '权限管理' },
  children: [{
    path: 'permission_list',
    name: 'permission_list',
    component: () => import('@/views/permission/list/index.vue'),
    meta: { title: '权限列表' }
  }, {
    path: 'permission_role',
    name: 'permission_role',
    component: () => import('@/views/permission/role/index.vue'),
    meta: { title: '角色管理' }
  }]
}

export default routes
